﻿<?php
class Cai extends AdminBase{
	public $pageSize=15;
	
	// 系统设置相关方法
	public final function settings(){
		$this->display('cai/settings.php');
	}
	
	
	
	public final function updateSettings(){
		if(!$para=$_POST) throw new Exception('参数出错');
        $id=$para['id'];
        $bool = $this->updateRows($this->prename .'setting', $para, "id=$id");
		if($bool){
			echo '修改成功';
		}else{
			throw new Exception('未知错误');
		}
	}
	

}